package team02.client.core.test;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Footer implements IsSerializable {

	public static final String STATISTIC_TYPE_ESTIMATE = "Estimate";
	public static final String STATISTIC_TYPE_ESTIMATE_VALUE = "R";
	public static final String STATISTIC_TYPE_ESTIMATE_PERCENT = "P";
	public static final String STATISTIC_TYPE_AVERAGE = "Average";
	public static final String STATISTIC_TYPE_RANKING = "Ranking";
	public static final String STATISTIC_TYPE_TREND = "Trend";
	public static final String STATISTIC_TYPE_GRAPHICAL = "Graphical";
	public static final String STATISTIC_TYPE_HISTGRAM = "Histgram";

	public static final ArrayList<String> TYPE_LIST = new ArrayList<String>() {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;

		{
			add(STATISTIC_TYPE_ESTIMATE);
			add(STATISTIC_TYPE_AVERAGE);
			add(STATISTIC_TYPE_RANKING);
			add(STATISTIC_TYPE_TREND);
			add(STATISTIC_TYPE_GRAPHICAL);
			add(STATISTIC_TYPE_HISTGRAM);
		}
	};

	List<String> statisticTypeList;

	String estimateType;

	public Footer() {
		statisticTypeList = new ArrayList<String>();
	}

	public boolean addStatisticType(String type) {
		return this.statisticTypeList.add(type);
	}

	public String getEstimateType() {
		return this.estimateType;
	}

	public void setEstimateType(String estimateType) {
		this.estimateType = estimateType;
	}

}
